

/* First created by JCasGen Mon Mar 28 12:51:53 CEST 2011 */
package ia1011.zanzibar.chaos.type;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.tcas.Annotation;


/** A token is the atom of the analysis: a bit of text that spans from a starting character to an ending character.
 * Updated by JCasGen Mon Mar 28 12:52:46 CEST 2011
 * XML source: /home/berardino/universita/IA/progetti_IA/Zanzibar/desc/Chaos/TypeSystemDescriptors/ChaosUimaTypeSystem.xml
 * @generated */
public class UimaToken extends Annotation {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(UimaToken.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected UimaToken() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public UimaToken(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public UimaToken(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public UimaToken(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: id

  /** getter for id - gets 
   * @generated */
  public int getId() {
    if (UimaToken_Type.featOkTst && ((UimaToken_Type)jcasType).casFeat_id == null)
      jcasType.jcas.throwFeatMissing("id", "ia1011.zanzibar.chaos.type.UimaToken");
    return jcasType.ll_cas.ll_getIntValue(addr, ((UimaToken_Type)jcasType).casFeatCode_id);}
    
  /** setter for id - sets  
   * @generated */
  public void setId(int v) {
    if (UimaToken_Type.featOkTst && ((UimaToken_Type)jcasType).casFeat_id == null)
      jcasType.jcas.throwFeatMissing("id", "ia1011.zanzibar.chaos.type.UimaToken");
    jcasType.ll_cas.ll_setIntValue(addr, ((UimaToken_Type)jcasType).casFeatCode_id, v);}    
   
    
  //*--------------*
  //* Feature: surface

  /** getter for surface - gets 
   * @generated */
  public String getSurface() {
    if (UimaToken_Type.featOkTst && ((UimaToken_Type)jcasType).casFeat_surface == null)
      jcasType.jcas.throwFeatMissing("surface", "ia1011.zanzibar.chaos.type.UimaToken");
    return jcasType.ll_cas.ll_getStringValue(addr, ((UimaToken_Type)jcasType).casFeatCode_surface);}
    
  /** setter for surface - sets  
   * @generated */
  public void setSurface(String v) {
    if (UimaToken_Type.featOkTst && ((UimaToken_Type)jcasType).casFeat_surface == null)
      jcasType.jcas.throwFeatMissing("surface", "ia1011.zanzibar.chaos.type.UimaToken");
    jcasType.ll_cas.ll_setStringValue(addr, ((UimaToken_Type)jcasType).casFeatCode_surface, v);}    
   
    
  //*--------------*
  //* Feature: positionInParagraph

  /** getter for positionInParagraph - gets 
   * @generated */
  public int getPositionInParagraph() {
    if (UimaToken_Type.featOkTst && ((UimaToken_Type)jcasType).casFeat_positionInParagraph == null)
      jcasType.jcas.throwFeatMissing("positionInParagraph", "ia1011.zanzibar.chaos.type.UimaToken");
    return jcasType.ll_cas.ll_getIntValue(addr, ((UimaToken_Type)jcasType).casFeatCode_positionInParagraph);}
    
  /** setter for positionInParagraph - sets  
   * @generated */
  public void setPositionInParagraph(int v) {
    if (UimaToken_Type.featOkTst && ((UimaToken_Type)jcasType).casFeat_positionInParagraph == null)
      jcasType.jcas.throwFeatMissing("positionInParagraph", "ia1011.zanzibar.chaos.type.UimaToken");
    jcasType.ll_cas.ll_setIntValue(addr, ((UimaToken_Type)jcasType).casFeatCode_positionInParagraph, v);}    
  }

    